package com.donquijote.proxy.subgroup;

import java.lang.reflect.Proxy;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-28 12:06
 */
public class ProxyUtil {
    public static Object newTimerProxy(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),
                target.getClass().getInterfaces(),
                new TimeInvocationHandler(target));
    }

}
